package com.example.androidsx;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;

public class ymbj extends AppCompatActivity {
TextView textname,textid;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ymbj);
        LinearLayout layout=findViewById(R.id.ymbj_cpgl);
        layout.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {
                startActivity(new Intent(ymbj.this,gly.class));
            }
        });
        textid=findViewById(R.id.gly_id);
        textname=findViewById(R.id.userName);



        Intent intent = getIntent();
        String ID=intent.getStringExtra("key_id");
        String name=intent.getStringExtra("kay_name");


        textid.setText(ID);


        textname.setText(name);


        ImageView addressCard = findViewById(R.id.addressCard);
        addressCard.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                startActivity(new Intent(ymbj.this, AddressActivity.class));
            }
        });


        ImageView orderCard = findViewById(R.id.orderCard);
        orderCard.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                startActivity(new Intent(ymbj.this, order.class));
            }
        });
    }
}